package ihm.listeners;

import ihm.Jeu;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import metier.GameState;

public class BoutonHautListener implements ActionListener {

	Jeu jeu;

	public BoutonHautListener(Jeu jeu) {
		this.jeu = jeu;
	}

	@Override
	public void actionPerformed(ActionEvent e) {

		this.jeu.requestFocus();
		GameState game = this.jeu.getGameState();
		game.controlUp();
	}

}
